<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>酒店</title>
    <style>
        .father div{
            width: 200px;
            height: 260px;
            transition: 0.5s;
        }
        .father{
            width: 1400px;
            height: 260px;
            display: flex;
        }
        .son:hover{
            width: 400px;
        }
    </style>
</head>
<body>
<div class="father">
    <div class="son" style="background-image: url('img/img1.jpg');background-position: center center"></div>
    <div class="son" style="background-image: url('img/img2.jpg');background-position: center center"></div>
    <div class="son" style="background-image: url('img/img3.jpg');background-position: center center"></div>
    <div class="son" style="background-image: url('img/img4.jpg');background-position: center center"></div>
    <div class="son" style="background-image: url('img/img5.jpg');background-position: center center"></div>
    <div class="son" style="background-image: url('img/img6.jpg');background-position: center center"></div>
    <div class="son" style="background-image: url('img/img7.jpg');background-position: center center"></div>
</div>
</body>
</html>